package ex2;

import fun.grammar.Word;

/**
 * Created with IntelliJ IDEA.
 * User: Roi
 * Date: 11/22/13
 */
public class Token extends Word {

    protected int line;
    protected int column;
    protected String value;

    public Token(int line, int column, String tag, String value) {
        super(tag);

        this.line = line + 1;
        this.column = column + 1;
        this.value = value;
    }

    public int getLine() {
        return line;
    }

    public int getColumn() {
        return column;
    }

    public String getValue() {
        return value;
    }
}
